package cn.itsource.mongodb;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@Document(collection ="tb_article" )
public class Employee {


    @Id
    private String _id;

    private String username;
    private Integer id;
    private Integer age;
    private Integer password;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone = "GMT+8")
    @Field(name="create_time")
    private Date createTime;

}
